load(
    "@nazel//:nazel_build.bzl",
    "nazel_cc_library",
    "nazel_cc_test",
)

package(default_visibility = ["//visibility:public"])

nazel_cc_library(
    name = "moving_window",
    hdrs = ["moving_window.h"],
)

nazel_cc_test(
    name = "moving_window_unittest",
    srcs = ["moving_window_unittest.cc"],
    deps = [
        ":moving_window",
        "//cc/third_party:xtensor",
    ],
)

nazel_cc_library(
    name = "time_moving_window",
    hdrs = ["time_moving_window.h"],
)

nazel_cc_test(
    name = "time_moving_window_unittest",
    srcs = ["time_moving_window_unittest.cc"],
    deps = [
        ":time_moving_window",
        "//cc/third_party:xtensor",
    ],
)

nazel_cc_library(
    name = "twma",
    hdrs = ["twma.h"],
    deps = [
        "//cc/coin1/base:exception_util",
    ],
)

nazel_cc_test(
    name = "twma_unittest",
    srcs = ["twma_unittest.cc"],
    deps = [
        ":twma",
    ],
)
